package com.example.designpattern.responsibility.config;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author long
 * @date 2024/4/20 10:47
 */
@AllArgsConstructor
public enum ValidatorEnum {

    NOT_NULL("notNullValidator","非空校验","lengthValidator"),

    LENGTH("lengthValidator","长度校验","priceValidator"),

    PRICE("priceValidator","价格校验","stockValidator"),

    STOCK("stockValidator","库存校验",null);

    /**
     * 和beanId保持一致
     */
    @Getter
    private String code;

    @Getter
    private String desc;

    @Getter
    private String next;

}
